<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/manage/common/taglibs.jsp" %>
<div class="body" style="position: relative">
    <div style="position: absolute;left: 20px;top:10px ; width: 70px; text-align: center;color: #47a6f5;cursor:pointer;border: 1px solid  #47a6f5;line-height: 28px"
         onclick="manage_sys_opens('中心机房','/manage/demo/powerPage/tosecondaryPages.html')">返回</div>
<div class="container"><div class="EMStop1"></div></div>
<div class="container1">
    <div class="EMSUspContent"><p class="EMStitle" style="position: absolute;top:40px ;position: relative">空调系统实时监控</p>
        <div class="content">
            <div class="left">
                <div class="upsSd" style=" background-image: url('/manage/assert/image/kongtiao.gif');background-size: 70% 100%;">
                    <div class="loading" id="box">

                    </div>
                </div>
                <p>连接状态 :<span class="linkSuccess"></span></p>
            </div>
            <div style="overflow: hidden;width:69% ">
                <div class="right" style="height: 380px; width:calc(100% + 19px);overflow: auto;">
                <table id="airConditioner_table" border="2">
                    <tr>
                        <th colspan="2">1号空调</th>

                        <th  colspan="2">2号空调</th>
                    </tr>
                    <tr>
                        <th class="blueBg"  >1.空调运行状态</th>
                        <td ><span name="airconditioningrunstate1"></span></td>
                        <th class="blueBg"  >空调运行状态</th>
                        <td ><span name="airconditioningrunstate2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">2.加热状态</th>
                        <td><span name="heatingstate1"></span></td>
                        <th class="blueBg">加热状态</th>
                        <td><span name="heatingstate2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">3.除湿状态</th>
                        <td><span name="fehumidificationstate1"></span></td>
                        <th class="blueBg">除湿状态</th>
                        <td><span name="fehumidificationstate2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">4.制冷状态</th>
                        <td><span name="refrigerationstate1"></span></td>
                        <th class="blueBg">制冷状态</th>
                        <td><span name="refrigerationstate2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">5.加湿状态</th>
                        <td><span name="humidificationstate1"></span></td>
                        <th class="blueBg">加湿状态</th>
                        <td><span name="humidificationstate2"></span></td>
                    </tr>
                   <tr>
                        <th class="blueBg">6.制冷设点</th>
                        <td><span name="refrigerationsettingpoint1"></span></td>
                        <th class="blueBg">制冷设点</th>
                        <td><span name="refrigerationsettingpoint2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">7.回风温度测量值</th>
                        <td><span name="returnairtemperaturenumber1"></span></td>
                        <th class="blueBg">回风温度测量值</th>
                        <td><span name="returnairtemperaturenumber2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">8.回风湿度测量值</th>
                        <td><span name="returnairtemperaturepercentage1"></span></td>
                        <th class="blueBg">回风湿度测量值</th>
                        <td><span name="returnairtemperaturepercentage2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">9.内风机运行时间</th>
                        <td><span name="internalfanruntime1"></span></td>
                        <th class="blueBg">内风机运行时间</th>
                        <td><span name="internalfanruntime2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">10.压缩机运行时间</th>
                        <td><span name="compressorruntime1"></span></td>
                        <th class="blueBg">压缩机运行时间</th>
                        <td><span name="compressorruntime2"></span></td>
                    </tr>

                    <tr>
                        <th class="blueBg">11.外风机运行时间</th>
                        <td><span name="externalfanruntime1"></span></td>
                        <th class="blueBg">外风机运行时间</th>
                        <td><span name="externalfanruntime2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">12.加热设定</th>
                        <td><span name="heatingsetting1"></span></td>
                        <th class="blueBg">加热设定</th>
                        <td><span name="heatingsetting2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">13.电源频率</th>
                        <td><span name="powerfrequency1"></span></td>
                        <th class="blueBg">电源频率</th>
                        <td><span name="powerfrequency2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">14.低温报警值</th>
                        <td><span name="lowetmperaturealarmnumber1"></span></td>
                        <th class="blueBg">低温报警值</th>
                        <td><span name="lowetmperaturealarmnumber2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">15.低湿报警值</th>
                        <td><span name="lowhumidityalarmnumber1"></span></td>
                        <th class="blueBg">低湿报警值</th>
                        <td><span name="lowhumidityalarmnumber2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">16.高温报警值</th>
                        <td><span name="hightemperaturealarmnumber1"></span></td>
                        <th class="blueBg">高温报警值</th>
                        <td><span name="hightemperaturealarmnumber2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">17.高湿报警值</th>
                        <td><span name="highhumidityalarmnumber1"></span></td>
                        <th class="blueBg">高湿报警值</th>
                        <td><span name="highhumidityalarmnumber2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">18.湿度设点</th>
                        <td><span name="humiditysettingpoint1"></span></td>
                        <th class="blueBg">湿度设点</th>
                        <td><span name="humiditysettingpoint2"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">19.高温报警</th>
                        <td><span name="hightemperaturealarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">高温报警</th>
                        <td><span name="hightemperaturealarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">20.高压锁定</th>
                        <td><span name="highvoltagelock1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">高压锁定</th>
                        <td><span name="highvoltagelock2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">21.排气锁定</th>
                        <td><span name="exhaustlock1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">排气锁定</th>
                        <td><span name="exhaustlock2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">22.加湿器故障</th>
                        <td><span name="humidifierfailure1"  style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">加湿器故障</th>
                        <td><span name="humidifierfailure2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">23.送风温度故障</th>
                        <td><span name="airsupplytemperaturefailure1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">送风温度故障</th>
                        <td><span name="airsupplytemperaturefailure2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">24.高压报警</th>
                        <td><span name="highvoltagealarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">高压报警</th>
                        <td><span name="highvoltagealarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">25.排气报警</th>
                        <td><span name="exhaustalarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">排气报警</th>
                        <td><span name="exhaustalarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">26.气流丢失</th>
                        <td><span name="airflowloss1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">气流丢失</th>
                        <td><span name="airflowloss2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">27.冷凝压力故障</th>
                        <td><span name="condensationpressurefault1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">冷凝压力故障</th>
                        <td><span name="condensationpressurefault2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">28.电源丢失报警</th>
                        <td><span name="powerlossalarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">电源丢失报警</th>
                        <td><span name="powerlossalarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">29.低压报警</th>
                        <td><span name="lowhvoltagealarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">低压报警</th>
                        <td><span name="lowhvoltagealarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">30.加湿过流</th>
                        <td><span name="humidifyingovercurrent1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">加湿过流</th>
                        <td><span name="humidifyingovercurrent2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">31.加热器故障</th>
                        <td><span name="heaterfailure1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">加热器故障</th>
                        <td><span name="heaterfailure2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">32.缺相告警</th>
                        <td><span name="missingphasealarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">缺相告警</th>
                        <td><span name="missingphasealarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">33.低温报警</th>
                        <td><span name="lowtemperaturealarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">低温报警</th>
                        <td><span name="lowtemperaturealarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">34.低湿报警</th>
                        <td><span name="lowhumidityalarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">低湿报警</th>
                        <td><span name="lowhumidityalarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">35.地板溢水</th>
                        <td><span name="flooroverflow1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">地板溢水</th>
                        <td><span name="flooroverflow2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">36.远程关机报警</th>
                        <td><span name="remoteshutdownalarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">远程关机报警</th>
                        <td><span name="remoteshutdownalarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">37.烟感告警</th>
                        <td> <span name="smokealarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">烟感告警</th>
                        <td> <span name="smokealarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">38.组网失败报警</th>
                        <td> <span name="networkfailurealarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">组网失败报警</th>
                        <td><span name="networkfailurealarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">40.高湿报警</th>
                        <td><span name="highhumidityalarm1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">高湿报警</th>
                        <td><span name="highhumidityalarm2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">41.低压锁定</th>
                        <td><span name="lowhvoltagelock1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">低压锁定</th>
                        <td><span name="lowhvoltagelock2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">42.内风机故障</th>
                        <td><span name="internalfanfault1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">内风机故障</th>
                        <td><span name="internalfanfault2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">43.回风温度故障</th>
                        <td><span name="returnairtemperaturefault1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">回风温度故障</th>
                        <td><span name="returnairtemperaturefault2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">44.相序错误</th>
                        <td><span name="phasesequenceerror1" style="margin-left: 0px" class="linkSuccess"></span></td>
                        <th class="blueBg">相序错误</th>
                        <td><span name="phasesequenceerror2" style="margin-left: 0px" class="linkSuccess"></span></td>
                    </tr>
                    <tr>
                        <th class="blueBg">45.防雷告警</th>
                        <td> <span name="lightningprotectionalarm1" style="margin-left: 0px" class="linkSuccess"></span></td></td>
                        <th class="blueBg">防雷告警</th>
                        <td> <span name="lightningprotectionalarm2" style="margin-left: 0px" class="linkSuccess"></span></td></td>
                    </tr>
                    <tr>
                        <th class="blueBg">46.回风湿度故障</th>
                        <td> <span name="returnrheumatismfault1" style="margin-left: 0px" class="linkSuccess"></span></td></td>
                        <th class="blueBg">回风湿度故障</th>
                        <td> <span name="returnrheumatismfault2" style="margin-left: 0px" class="linkSuccess"></span></td></td>
                    </tr>

                    <tr>
                        <th class="blueBg">47.加湿器运行时间</th>
                        <td> <span name="humidifierruntime1"></span></td></td>
                        <th class="blueBg">加湿器运行时间</th>
                        <td> <span name="humidifierruntime2"></span></td></td>
                    </tr>

                    <tr>
                        <th class="blueBg">48.电加热运行时间</th>
                        <td> <span name="electricheatingrruntime1"></span></td></td>
                        <th class="blueBg">电加热运行时间</th>
                        <td> <span name="electricheatingrruntime2"></span></td></td>
                    </tr>

                </table>
            </div>
            </div>
        </div>
    </div>
</div>

</div>
<script>
    $(function () {
        var count = 0;
        var t = setInterval(function () {
            var $redDiv = $("#box").find(".greenBg");
            if(count === 15){
                count=-1;
                $("#box").find('.greenBg').removeClass('greenBg').addClass('white');
                $redDiv=$("#box").find(".first");
                $("#box").find(".last").removeClass("greenBg").addClass("white");
            }
            $redDiv.next().removeClass("white").addClass("greenBg");
            count++;
        }, 1000);


        $.post("/manage/demo/equipment/fetchLastData.html?eids="+ $.websocket.kongtiao1+','+$.websocket.kongtiao2,function (entity1) {

        })

    });
</script>